Optimal. Leaf size=98 \[ -\frac {a+b \tan ^{-1}(c x)}{e (d+e x)}-\frac {b c \log \left (c^2 x^2+1\right )}{2 \left (c^2 d^2+e^2\right )}+\frac {b c \log (d+e x)}{c^2 d^2+e^2}+\frac {b c^2 d \tan ^{-1}(c x)}{e \left (c^2 d^2+e^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {4862, 706, 31, 635, 203, 260} \[ -\frac {a+b \tan ^{-1}(c x)}{e (d+e x)}-\frac {b c \log \left (c^2 x^2+1\right )}{2 \left (c^2 d^2+e^2\right )}+\frac {b c \log (d+e x)}{c^2 d^2+e^2}+\frac {b c^2 d \tan ^{-1}(c x)}{e \left (c^2 d^2+e^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 203
Rule 260
Rule 635
Rule 706
Rule 4862
Rubi steps
\begin {align*} \int \frac {a+b \tan ^{-1}(c x)}{(d+e x)^2} \, dx &=-\frac {a+b \tan ^{-1}(c x)}{e (d+e x)}+\frac {(b c) \int \frac {1}{(d+e x) \left (1+c^2 x^2\right )} \, dx}{e}\\ &=-\frac {a+b \tan ^{-1}(c x)}{e (d+e x)}+\frac {(b c) \int \frac {c^2 d-c^2 e x}{1+c^2 x^2} \, dx}{e \left (c^2 d^2+e^2\right )}+\frac {(b c e) \int \frac {1}{d+e x} \, dx}{c^2 d^2+e^2}\\ &=-\frac {a+b \tan ^{-1}(c x)}{e (d+e x)}+\frac {b c \log (d+e x)}{c^2 d^2+e^2}-\frac {\left (b c^3\right ) \int \frac {x}{1+c^2 x^2} \, dx}{c^2 d^2+e^2}+\frac {\left (b c^3 d\right ) \int \frac {1}{1+c^2 x^2} \, dx}{e \left (c^2 d^2+e^2\right )}\\ &=\frac {b c^2 d \tan ^{-1}(c x)}{e \left (c^2 d^2+e^2\right )}-\frac {a+b \tan ^{-1}(c x)}{e (d+e x)}+\frac {b c \log (d+e x)}{c^2 d^2+e^2}-\frac {b c \log \left (1+c^2 x^2\right )}{2 \left (c^2 d^2+e^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.20, size = 111, normalized size = 1.13 \[ \frac {\frac {b c \left (\left (\sqrt {-c^2} d-e\right ) \log \left (1-\sqrt {-c^2} x\right )-\left (\sqrt {-c^2} d+e\right ) \log \left (\sqrt {-c^2} x+1\right )+2 e \log (d+e x)\right )}{2 \left (c^2 d^2+e^2\right )}-\frac {a+b \tan ^{-1}(c x)}{d+e x}}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 116, normalized size = 1.18 \[ -\frac {2 \, a c^{2} d^{2} + 2 \, a e^{2} - 2 \, {\left (b c^{2} d e x - b e^{2}\right )} \arctan \left (c x\right ) + {\left (b c e^{2} x + b c d e\right )} \log \left (c^{2} x^{2} + 1\right ) - 2 \, {\left (b c e^{2} x + b c d e\right )} \log \left (e x + d\right )}{2 \, {\left (c^{2} d^{3} e + d e^{3} + {\left (c^{2} d^{2} e^{2} + e^{4}\right )} x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 118, normalized size = 1.20 \[ -\frac {c a}{\left (c e x +d c \right ) e}-\frac {c b \arctan \left (c x \right )}{\left (c e x +d c \right ) e}+\frac {c b \ln \left (c e x +d c \right )}{c^{2} d^{2}+e^{2}}-\frac {b c \ln \left (c^{2} x^{2}+1\right )}{2 \left (c^{2} d^{2}+e^{2}\right )}+\frac {b \,c^{2} d \arctan \left (c x \right )}{e \left (c^{2} d^{2}+e^{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 107, normalized size = 1.09 \[ \frac {1}{2} \, {\left ({\left (\frac {2 \, c d \arctan \left (c x\right )}{c^{2} d^{2} e + e^{3}} - \frac {\log \left (c^{2} x^{2} + 1\right )}{c^{2} d^{2} + e^{2}} + \frac {2 \, \log \left (e x + d\right )}{c^{2} d^{2} + e^{2}}\right )} c - \frac {2 \, \arctan \left (c x\right )}{e^{2} x + d e}\right )} b - \frac {a}{e^{2} x + d e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.46, size = 112, normalized size = 1.14 \[ \frac {d^2\,\left (b\,c\,\ln \left (d+e\,x\right )-\frac {b\,c\,\ln \left (c^2\,x^2+1\right )}{2}+a\,c^2\,x+b\,c^2\,x\,\mathrm {atan}\left (c\,x\right )\right )-d\,e\,\left (b\,\mathrm {atan}\left (c\,x\right )-b\,c\,x\,\ln \left (d+e\,x\right )+\frac {b\,c\,x\,\ln \left (c^2\,x^2+1\right )}{2}\right )+a\,e^2\,x}{d\,\left (c^2\,d^2+e^2\right )\,\left (d+e\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 4.26, size = 695, normalized size = 7.09 \[ \begin {cases} - \frac {a}{d e + e^{2} x} & \text {for}\: c = 0 \\\frac {a x + b x \operatorname {atan}{\left (c x \right )} - \frac {b \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{2 c}}{d^{2}} & \text {for}\: e = 0 \\\frac {2 a d}{- 2 d^{2} e - 2 d e^{2} x} - \frac {i b d \operatorname {atanh}{\left (\frac {e x}{d} \right )}}{- 2 d^{2} e - 2 d e^{2} x} - \frac {i b d}{- 2 d^{2} e - 2 d e^{2} x} + \frac {i b e x \operatorname {atanh}{\left (\frac {e x}{d} \right )}}{- 2 d^{2} e - 2 d e^{2} x} & \text {for}\: c = - \frac {i e}{d} \\\frac {2 a d}{- 2 d^{2} e - 2 d e^{2} x} + \frac {i b d \operatorname {atanh}{\left (\frac {e x}{d} \right )}}{- 2 d^{2} e - 2 d e^{2} x} + \frac {i b d}{- 2 d^{2} e - 2 d e^{2} x} - \frac {i b e x \operatorname {atanh}{\left (\frac {e x}{d} \right )}}{- 2 d^{2} e - 2 d e^{2} x} & \text {for}\: c = \frac {i e}{d} \\\tilde {\infty } \left (a x + b x \operatorname {atan}{\left (c x \right )} - \frac {b \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{2 c}\right ) & \text {for}\: d = - e x \\- \frac {2 a c^{2} d^{2}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} - \frac {2 a e^{2}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} + \frac {2 b c^{2} d e x \operatorname {atan}{\left (c x \right )}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} - \frac {b c d e \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} + \frac {2 b c d e \log {\left (\frac {d}{e} + x \right )}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} - \frac {b c e^{2} x \log {\left (x^{2} + \frac {1}{c^{2}} \right )}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} + \frac {2 b c e^{2} x \log {\left (\frac {d}{e} + x \right )}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} - \frac {2 b e^{2} \operatorname {atan}{\left (c x \right )}}{2 c^{2} d^{3} e + 2 c^{2} d^{2} e^{2} x + 2 d e^{3} + 2 e^{4} x} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________